package com.ruoyi.production.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品列表对象 product_management
 * 
 * @author admin
 * @date 2024-08-30
 */
public class ProductManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long productId;

    /** 产品编码 */
    @Excel(name = "产品编码",sort = 2)
    private String productCode;

    /** 标准单价(元) */
//    @Excel(name = "标准单价(元)")
    private BigDecimal standardUnitPrice;

    /** 产品名称 */
    @Excel(name = "产品名称",sort = 1)
    private String productSpecification;

    /** 申请人 */
//    @Excel(name = "申请人")
    private String applicant;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicationTime;

    /** 审批人 */
//    @Excel(name = "审批人")
    private String approver;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /** 驳回原因 */
//    @Excel(name = "驳回原因")
    private String causeOfRejection;

    /** 产品型号 */
    @Excel(name = "产品型号",sort = 3)
    private String model;

    /** 品牌 */
    @Excel(name = "品牌",sort = 4)
    private String brand;

    /** 单位 */
    @Excel(name = "单位",sort = 6)
    private String unit;

    /** 数量 */
    @Excel(name = "数量",sort = 5)
    private Long quantity;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setStandardUnitPrice(BigDecimal standardUnitPrice) 
    {
        this.standardUnitPrice = standardUnitPrice;
    }

    public BigDecimal getStandardUnitPrice() 
    {
        return standardUnitPrice;
    }
    public void setProductSpecification(String productSpecification) 
    {
        this.productSpecification = productSpecification;
    }

    public String getProductSpecification() 
    {
        return productSpecification;
    }
    public void setApplicant(String applicant) 
    {
        this.applicant = applicant;
    }

    public String getApplicant() 
    {
        return applicant;
    }
    public void setApplicationTime(Date applicationTime) 
    {
        this.applicationTime = applicationTime;
    }

    public Date getApplicationTime() 
    {
        return applicationTime;
    }
    public void setApprover(String approver) 
    {
        this.approver = approver;
    }

    public String getApprover() 
    {
        return approver;
    }
    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }
    public void setCauseOfRejection(String causeOfRejection) 
    {
        this.causeOfRejection = causeOfRejection;
    }

    public String getCauseOfRejection() 
    {
        return causeOfRejection;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productCode", getProductCode())
            .append("standardUnitPrice", getStandardUnitPrice())
            .append("productSpecification", getProductSpecification())
            .append("applicant", getApplicant())
            .append("applicationTime", getApplicationTime())
            .append("approver", getApprover())
            .append("approvalTime", getApprovalTime())
            .append("causeOfRejection", getCauseOfRejection())
            .append("model", getModel())
            .append("brand", getBrand())
            .append("remark", getRemark())
            .append("unit", getUnit())
            .append("quantity", getQuantity())
            .toString();
    }
}
